package com.juicygames.framework.property.space;

import com.juicygames.framework.gamepart.GamePart;
import com.juicygames.framework.property.GameProperty;
import com.juicygames.framework.type.Point;

public class Position extends GamePart implements GameProperty<Point> {
	
	private Point coordinates;
	
	public Position() {
		this(0,0);
	}
	
	public Position(int x, int y) {
		super();
		coordinates = new Point(x,y);
	}

	public Point get() {
		return coordinates;
	}

	public GameProperty<Point> set(Point value) {
		coordinates = value;
		return this;
	}

}
